package com.awx.server.exception;


public class InvalidValueException extends RuntimeException {
	
	private Class<?> c;
	private String p;
	
	public InvalidValueException(Class<?> c, String p, Exception e) {
		super("Property " + p + " in class " + c.getName() + " cannot be null", e);
		this.c = c;
		this.p = p;
	}

	public InvalidValueException(String string) {
		super(string);
	}

	/**
	 * @return Returns the c.
	 */
	public Class<?> getErrorClass() {
		return c;
	}

	/**
	 * @param c The c to set.
	 */
	public void setErrorClass(Class<?> c) {
		this.c = c;
	}

	/**
	 * @return Returns the p.
	 */
	public String getErrorProperty() {
		return p;
	}

	/**
	 * @param p The p to set.
	 */
	public void setErrorProperty(String p) {
		this.p = p;
	}
	
	
}
